import React, { Component } from 'react';
import {
    CaretUpOutlined
} from '@ant-design/icons';

interface IProps {
    chageFlag: ()=>void
}

interface IState {
    val:string,

}


class index extends Component<IProps, IState> {

      constructor(props:IProps) {
          super(props);
          this.state = {
            val:''
          }
      }
      handlechangeFlag = ()=> {
        this.props.chageFlag();
    }
    
    
    render() {
        return (
           <div className= 'chat' style={{height: '30px'}}>
            <div className='chat_header'>
                在线客服
                <div className='chat_header_down' onClick={this.handlechangeFlag}>
                <CaretUpOutlined />
                </div>
            </div>
       </div>           
        );
    }
}

export default index;
